import http from '@/utils/http'

export const addCarAPI = (data) => {
    return http({
        url: `/order/api/cart/addToCart`,
        method: 'POST',
        data
    })
}

export const getCarListAPI = (uid) => {
    return http({
        url: `/order/api/cart/getCartList/${uid}`,
        method: 'get',
    })
}

export const deleteCarAPI = (params) => {

    return http({
        url: `/order/api/cart/removeFromCart`,
        method: 'get',
        params
    })
}

export const mergeCarAPI = (uid) => {
    return http({
        url: `/order/api/cart/getCartList/${uid}`,
        method: 'get',
    })
}
